#include "rgb_mode.h"
#include "stdio.h"
#include "unistd.h"
#include "sys/types.h"
#include "sys/stat.h"
#include "sys/ioctl.h"
#include "fcntl.h"
#include "stdlib.h"
#include "string.h"
#include <poll.h>
#include <sys/select.h>
#include <sys/time.h>
#include <signal.h>
#include <fcntl.h>


int main(int argc, char *argv[])
{
    int fd;
    char buff[4];
    fd = open("/dev/ws2811_dev", O_RDWR);
    buff[0]= 0;
    buff[1]= 1;
    buff[2]= "L";
    while (1)
    {
        usleep(200000);
        write(fd,buff,sizeof(buff));
    }
    close(fd);
    return 0;
}